package com.catchu.pattern.creational.命令模式.test;

import com.catchu.pattern.creational.命令模式.command.DesignerCommand;
import com.catchu.pattern.creational.命令模式.command.ProgrammerCommand;
import com.catchu.pattern.creational.命令模式.invoker.Invoker;

public class Client {
    public static void main(String[] args) {
        Invoker invoker = new Invoker();
        invoker.setBaseCommand(new ProgrammerCommand());
        invoker.action();

        invoker.setBaseCommand(new DesignerCommand());
        invoker.action();
    }
}
